import request from '@/utils/request'

// 查询进度跟踪列表
export function listWorkPlanItemTrack(query) {
  return request({
    url: '/oa/workPlanItemTrack/list',
    method: 'get',
    params: query
  })
}

export function listWorkPlanItemTrackAll(query) {
    return request({
        url: '/oa/workPlanItemTrack/all',
        method: 'get',
        params: query
    })
}

// 查询进度跟踪详细
export function getWorkPlanItemTrack(id) {
  return request({
    url: '/oa/workPlanItemTrack/' + id,
    method: 'get'
  })
}

// 新增进度跟踪
export function addWorkPlanItemTrack(data) {
  return request({
    url: '/oa/workPlanItemTrack',
    method: 'post',
    data: data
  })
}

// 修改进度跟踪
export function updateWorkPlanItemTrack(data) {
  return request({
    url: '/oa/workPlanItemTrack',
    method: 'put',
    data: data
  })
}

// 删除进度跟踪
export function delWorkPlanItemTrack(id) {
  return request({
    url: '/oa/workPlanItemTrack/' + id,
    method: 'delete'
  })
}
